<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTcmDrugDetailTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('tcm_drug_detail', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->nullable()->comment('名称');
            $table->string('pinyin')->nullable()->comment('拼音');
            $table->string('shareImg')->nullable()->comment('分享图片');
            $table->text('alias')->nullable()->comment('别名');
            $table->string('picture')->nullable()->comment('图片');
            $table->text('meridian')->nullable()->comment('归经');
            $table->text('taste')->nullable()->comment('性味功效');
            $table->text('formula')->nullable()->comment('常用方');
            $table->text('caution')->nullable()->comment('使用注意');
            $table->text('pieces')->nullable();
            $table->text('origin')->nullable();
            $table->text('processing')->nullable();
            $table->string('classification')->nullable();
			$table->string('mishina')->nullable();
            $table->string('natures')->nullable();
            $table->string('flavors')->nullable();
            $table->string('effects')->nullable();
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('tcm_drug_detail');
    }
}
